<script setup lang="ts">
const { options, width = 400, height = 400 } = defineProps<{
  options?: object,
  width: number | string,
  height: number | string
}>()

const player = useTemplateRef<HTMLVideoElement | null>('videoPlayer')
let video = null
onMounted(() => {
  video = useVideo(player, options)
});
</script>

<template>
  <video :width="width" :height="height" ref="videoPlayer" class="video-js"></video>
</template>
